-
Home
-
Airwallex Online Payments Gateway
-
1.6.0
-
Code
-
Classes
- OrderController
| Total Complexity |
120 |
| Dependencies |
9 |
| Dependents |
3 |
| Total lines |
633 |
| Lines of code |
395 |
| Logical lines of code |
239 |
| Comment lines |
144 |
| Methods |
18 |
| Properties |
0 |
Methods 18
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| getAvailableShippingOptions() |
B |
35 |
22 |
83 |
| getDisplayItems() |
B |
37 |
15 |
72 |
| normalizeState() |
A |
49 |
17 |
28 |
| addToCart() |
A |
50 |
9 |
26 |
| getNormalizedStateFromExpressCheckoutStates() |
A |
56 |
9 |
17 |
| calculateShipping() |
A |
45 |
7 |
41 |
| validateState() |
A |
53 |
8 |
22 |
| getNormalizedState() |
S |
55 |
7 |
19 |
| getShippingOptions() |
S |
59 |
7 |
13 |
| createOrderFromCart() |
S |
59 |
4 |
14 |
| getNormalizedPostcode() |
S |
65 |
3 |
9 |
| updateWCShippingMethod() |
S |
65 |
3 |
9 |
| updateShippingMethod() |
S |
60 |
2 |
13 |
| getCartDetails() |
S |
63 |
2 |
11 |
| isNormalizedState() |
S |
74 |
2 |
4 |
| getCartBasics() |
S |
69 |
1 |
7 |
| sanitizeString() |
S |
79 |
1 |
3 |
| getFormattedShippingLabel() |
S |
74 |
1 |
4 |